const { Sequelize, sequelize } = require('./sequelize');

const Laboratory = sequelize.define('Laboratory', {
  lId: {
    type: Sequelize.INTEGER,
    allowNull: false,
    primaryKey: true,
    unique: true,
  },
  available: {
    type: Sequelize.BOOLEAN,
    allowNull: false,
    defaultValue: true,
  },
  location: {
    type: Sequelize.STRING,
    allowNull: false,
  },
  capacity: {
    type: Sequelize.INTEGER,
    allowNull: false,
    defaultValue: 10,
  },
  lIsArranged: {
    type: Sequelize.STRING,
  },
}, {
  modelName: 'Laboratory',
  tableName: 'laboratory',
  timestamps: false,
});

module.exports = {
  Laboratory
};
